package plus.easydo.starter.oauth.resources.anotation;

import org.springframework.context.annotation.Import;
import plus.easydo.starter.oauth.resources.aspect.CustomizePreAuthorizeAspect;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 开启自定义鉴权注解功能
 * @author yuzhanfeng
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import(CustomizePreAuthorizeAspect.class)
public @interface EnableCustomizePreAuthorize {
}
